<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2022-04-22
  Time: 15:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>新闻首页</title>
</head>
<body>
<h1>一堆新闻</h1>
<p><a href="javascript:history.back(-1)">返回上一级</a></p>
<a href="${pageContext.request.contextPath}/user/exit">退出登录</a>
<c:forEach items="${newsList}" var="news">
    <p><a href="${pageContext.request.contextPath}/news/home/${news.id}">${news.title}</a></p>
</c:forEach>
</body>
</html>
